package cc.lj.internal.coupons.interfaces.dto.convert;

import cc.lj.internal.coupons.domain.martcap.model.vo.CapBatchDO;
import cc.lj.internal.coupons.domain.martcap.model.vo.CapMerchantDO;
import cc.lj.internal.coupons.interfaces.dto.CapBatchDTO;
import cc.lj.internal.coupons.interfaces.dto.CapMerchantDTO;
import cc.lj.internal.coupons.interfaces.dto.command.AddCapMerchantCommand;
import cc.lj.internal.coupons.interfaces.dto.command.InsertCapBatchCommand;
import cc.lj.internal.coupons.interfaces.dto.command.UpdateCapBatchCommand;
import cc.lj.internal.coupons.interfaces.dto.query.CapBatchQuery;
import cc.lj.internal.coupons.interfaces.dto.query.CapMerchantListQuery;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Named;
import org.mapstruct.factory.Mappers;

import java.math.BigDecimal;

/**
 * 封顶额商户表DO与DTO转换
 * @author liangxifeng
 * @date 2021-12-20
 */
@Mapper
public interface CapMerchantDTOConvertDO {
    CapMerchantDTOConvertDO INSTANCE = Mappers.getMapper(CapMerchantDTOConvertDO.class);

    //dto to do
    CapMerchantDO convert(AddCapMerchantCommand cmd);

    //dto to do
    CapMerchantDO convert(CapMerchantListQuery listQuery);

    //do to dto
    CapMerchantDTO convert(CapMerchantDO capMerchantDO);
}
